<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="sql,mysql,oracle,sqlserver,db2,标准sql,sql方言,sql问题集" />
    <meta name="description" content="SQLPOOL，信息完整的SQL查询、学习平台，标准、MySQL、Oracle、SQLServer、DB2"/>
    <title>
    <?php
    global $page, $paged;

	wp_title( ' - ', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " - $site_description";
    echo $post->post_parent;
    echo " - ";
    echo $post->ID;
    ?>
    </title>
    <link rel="stylesheet" type="text/css" href="/wordpress/wp-content/themes/carl/style.css" />
    <link href="/wordpress/wp-content/themes/carl/css/sp/jquery-ui-1.9.2.custom.css" rel="stylesheet">
    <script src="/wordpress/wp-content/themes/carl/js/jquery-1.8.3.js"></script>
	<script src="/wordpress/wp-content/themes/carl/js/jquery-ui-1.9.2.custom.js"></script>
    <script>
	$(function() {
        $("#post-<?php echo $post->ID; ?>").addClass("spnavselected");
        $("#nav<?php $a=get_ancestors($post->post_parent,'page');
                     echo get_page($a[0])->post_name; ?>").addClass("topNavSelected");
        $("#dailynav").datepicker({
            dateFormat: "yy-mm-dd",
            dayNamesMin: [ "日", "一", "二", "三", "四", "五", "六" ],
            monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ],
			inline: true,
            dateFormat: "yy-mm-dd",
            onSelect: function(dateText, inst ){
                $("#dailycurrent").html(dateText);
            },
            beforeShow: function(input, inst ){
                $("#dailycurrent").html($("#dailynav").datepicker( "getDate" ));
            }
		});
        $( "#icons li" ).hover(
			function() {
				$( this ).addClass( "ui-state-hover" );
			},
			function() {
				$( this ).removeClass( "ui-state-hover" );
			}
		);
        $("#dailybefore").click(function(){
            var currentDate = $( "#dailynav" ).datepicker( "getDate" );
            $("#dailycurrent").html(currentDate);
            $( "#dailynav" ).datepicker( "setDate", "-1d" );
        });
        $("#dailyafter").click(function(){
            $( "#dailynav" ).datepicker( "setDate", "+1d" );
        });
    });
    </script>
</head>
<body>
    <div class="topWrapper">
        <div class="topHeader">
            <a href="/wordpress/" class="topLogo"></a>
            <div class="topNav">
                <a id="navhome" href="/wordpress/" >首页</a>                
                <a id="navpage" href="/wordpress/page/"  >SQLPOOL</a>
                <a id="navdaily" href="/wordpress/daily/" >每日一题</a>
                <a id="navtroubleshoot" href="/wordpress/troubleshoot/" >SQL问题集</a>
                <a id="navabout" href="/wordpress/about/" >关于</a>
                <span class="navMore">更多<b></b>
                    <ul class="navMoreUl">
                        <li><a href="#" >收藏本站</a></li>
                        <li><a href="#" >提交建议/Bug</a></li>
                        <li><?php wp_loginout(get_permalink(),true); ?></li>
                    </ul>
                </span>
            </div>
            <div class="topHeadeRight">
                <span class="topSearch">
                    <form action="#" onsubmit="return searchHeaderFunc();">
                        <input id="head_searchText_id" name="world"  type="text" class="topSearchTxt" />
                        <input class="topSearchBtn" type="submit" value="" />
                        <div class="chooseS layout">
                            <table width="100%">
                                <tr><td><input type="radio" name="page" id="a1" value="0" checked/><label for="a1" >本站</label></td></tr>
                                <tr><td><input type="radio" name="page" id="a2"  value="1" /><label for="a2">MySQL</label></td></tr>
                                <tr><td><input type="radio" name="page" id="a3"  value="2" /><label for="a3">Oracle</label></td></tr>                                
                                <tr><td><input type="radio" name="page" id="a4"  value="3" /><label for="a4">SQLServer</label></td></tr>     
                                <tr><td><input type="radio" name="page" id="a5"  value="4" /><label for="a5">DB2</label></td></tr>     
                                <tr><td><input type="radio" name="page" id="a6"  value="5" /><label for="a6">Google</label></td></tr>
                            </table>
                        </div>
                    </form>
                </span>
            </div>
        </div>
    </div>